package service

import (
	"github.com/go-kratos/kratos/v2/log"
	"github.com/google/wire"
	"multi/api/tgp"
	"multi/app/ts/internal/biz"
)

// ProviderSet is service providers.
var ProviderSet = wire.NewSet(NewService)

type Service struct {
	tgp.UnimplementedTgpCommonApiServer
	common *biz.CommonUsecase
	log    *log.Helper
}

func NewService(c *biz.CommonUsecase, logger log.Logger) *Service {
	return &Service{
		common: c,
		log:    log.NewHelper(log.With(logger, "module", "/internal/service/service")),
	}
}
